package com.linyf.design.mediator;

/**
 * @Author: linyf
 * @Description: TODO
 * @DateTime: 2023/4/3 9:49
 **/
public class Main {

    public static void main(String[] args) {

        Mediator mediator = new ConcreteMediator();

        Colleague2 colleague2 = new Colleague2(mediator);

        Colleague1 colleague1 = new Colleague1(mediator);

        mediator.setColleague1(colleague1);
        mediator.setColleague2(colleague2);



        colleague1.c1Toc2();


        colleague2.c2Toc1();



    }
}
